package ian.swing;

import java.awt.GridLayout;

import javax.swing.*;


public class LogInPanel extends JPanel{
	
	protected JButton logInButton = new JButton("Log in");
	protected JTextField logInText = new JTextField("ian");
	
	public String getText(){
		return logInText.getText();
	}
	
	public void setFrame(Object o){
		this.logInButton.addMouseListener((Entrance)o);
	}
	
	public LogInPanel(){
		super();
		this.setSize(400, 300);
		this.setVisible(true);
		this.setLayout(new GridLayout(1,2));
		this.add(logInText);
		this.add(logInButton);
		logInText.setEnabled(true);
		logInText.setVisible(true);
		logInText.setEditable(true);
	}
}
